Move cpu0_stack out of Xen text section and into BSS. This
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 2 Dec 2005 17:00:49 +0000 (18:00 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 2 Dec 2005 17:00:49 +0000 (18:00 +0100)
commit773ded42218d434302b31aa4501649534c62e6d0
treed1ef2697f559ee16b2ba5135ed98eae906997866
parent9b08b0371d509d9465bacb4dd14fc99b01183d02
Move cpu0_stack out of Xen text section and into BSS. This
avoids getting loads of bogus cpu0_stack lines in call
backtraces from non-debug builds.

Doing this requires greater alignment of the BSS section,
which reveals a bug in ld where the alignment padding is
not added to the program segment's memsz field. We get around
this by finding the address of the last symbol in the image,
and increasing our load image's memsz to include that symbol.

Also some cleanups to the linker scripts.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/Makefile
xen/arch/x86/boot/mkelf32.c
xen/arch/x86/boot/x86_32.S
xen/arch/x86/boot/x86_64.S
xen/arch/x86/x86_32/xen.lds
xen/arch/x86/x86_64/xen.lds